<!---
	Title:		Elders Program Manager
	Author:		Bruce Frick
	Purpose:	Base functions for the software
--->
<cfcomponent>

	<cfinclude template="/code_lib/SCF_Exchange.cfm" />
	<cfinclude template="/code_lib/SCF_Employee.cfm" />
	<cfinclude template="/code_lib/AppSecurity.cfm" /> 
    
    
    <!---HTML header and footer.  Thsee blocks of html are on every page, so I made function to spit them out.--->
	<cffunction name="htmlHeader" access="public" returntype="any" >
    	<cfargument default="" name="js_list" type="any" required="no" />
    	<cfargument default="" name="css_list" type="any" required="no" />
        <cfargument default="Elders Program" name="title" type="string" required="no" />
        <cfargument default="0" name="SessionElderID" type="numeric" required="no" />
        
        <!---Pauls date validator.  --->
		<cfajaxproxy cfc="/code_lib/SCF_DateValidation" jsclassname="pdv">
        
        <!---Sets the session variable ElderID--->
        <cfajaxproxy cfc="utilities" jsclassname="sse">
        
        <!---Gets the session variable ElderID--->
        <cfajaxproxy cfc="utilities" jsclassname="gse">
        
        <cfajaxproxy cfc="utilities" jsclassname="EvalDate">
        
        <!---Gets the session variable ElderID--->
        <cfajaxproxy cfc="utilities" jsclassname="EvalTime">        


        <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><cfoutput>#title#</cfoutput></title>
        
        <link href="/scfApps/css/scfAppsGeneral.css" rel="stylesheet" type="text/css" />
        <link href="/scfApps/css/scfApps.css" rel="stylesheet" type="text/css" />
        <link href="/scfApps/css/scfAppsBlue.css" rel="stylesheet" type="text/css" />
        <link href="/scfApps/css/scfApps_7itemNav.css" rel="stylesheet" type="text/css" />
        
        <cfif ListLen(css_list) gt 0>
    		<cfloop list="#css_list#" index="css" delimiters=",">
	 			<link href="<cfoutput>#css#</cfoutput>" rel="stylesheet" type="text/css" />
        	</cfloop>
        </cfif>
        
        <script language="Javascript" type="text/javascript" src="/jquery/jquery-1.4.2.min.js"></script>
		<cfif ListLen(js_list) gt 0>
    		<cfloop list="#js_list#" index="js" delimiters=",">				
		 		<script language="Javascript" type="text/javascript" src="<cfoutput>#js#</cfoutput>" ></script>				
        	</cfloop>
        </cfif>		
        </head> 		     
           
    <body >
	<div id="outer">
    
    	<div id="header">
			<h1><span class="headerColor"><a href="http://www.scfonline.net/">SCF</a></span> Elders Program</h1>
            <h2>Version 1.0</h2>
		</div>
        
 	    <div id="statusBar">
        </div>
        
        <div id="globalheader">
        	<div id="globalnav">
            	<ul><cfoutput>
                	<li id="gn-zero">
                    	<a href="intake.cfm?ElderID=#SessionElderID#"></a>
                    </li>
                	<li id="gn-one">
                    	<a href="serviceplan.cfm?ElderID=#SessionElderID#"></a>
                    </li>
                    <li id="gn-two">
                    	<a href="dailyprogressnote.cfm?ElderID=#SessionElderID#"></a>
                    </li>
                    <li id="gn-three">
                    	<a href="priorauth.cfm?ElderID=#SessionElderID#"></a>
                    </li>
                    <li id="gn-four">
                    	<a href="meals.cfm"></a> 
                    </li>
                    <li id="gn-five">
                    	<a href="provider.cfm"></a> 
                    </li>
                    <li id="gn-six">
                    	<a href="reports.cfm"></a> 
                    </li>
              </ul></cfoutput>
            </div>
		</div>
		
		<div id="content" style="margin-top: 10px;">
			
			<div id="main" class="noSidebar">
			<!---If you take out sidebars, add a class on the main of either leftSidebar, rightSidebar or noSidebar--->			  	

                     
    </cffunction>
    
    
    <!---HTML header and footer.  Thsee blocks of html are on every page, so I made function to spit them out.--->
    <cffunction name="htmlFooter" access="public" returntype="any" >

        		  	</div>
		</div>        
        
        <div id="footer">
            <ul>
                <li>Copyright &copy;</li>
                <li><a href="http://www.scfonline.net/">Southcentral Foundation</a></li>
            </ul>
        </div>
	</div>
</body>
</html>
    </cffunction>
    
  

</cfcomponent>